package ModelLayer;

import java.util.ArrayList;

/**
 * @author (Gruppe C) 
 * @version (2012.11.09)
 */
public class LendContainer
{
    /*
     * Singleton - One instance allowed.
     */
    private static LendContainer instance;
    private LendContainer()
    {
        lends = new ArrayList<Lend>();
    }
    public static LendContainer getInstance()
    {
        if (instance == null)
        {
            instance = new LendContainer();
        }
        return instance;
    }


    // Fields
    ArrayList<Lend> lends;
    
    public void addLend(Lend lend)
    {
        lends.add(lend);
    }
    
    public void deleteLend(Lend lend)
    {
        lends.remove(lend);
    }
}


